package com.op.teachingliteapp.fragment;

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Toast;

import com.op.teachingliteapp.R;

public class teaching_material extends Fragment {

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View root = inflater.inflate(R.layout.teaching_material, container,false);
		
		//课程PPT
		root.findViewById(R.id.class_ppt).setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				getFragmentManager().beginTransaction().addToBackStack(null).replace(R.id.main_show2, new ppt_listview_choice()).commit();
				Toast.makeText(getActivity(), "课程PPT", Toast.LENGTH_SHORT).show();
			}
		});
		
		
		
		
		
		
		
		
		
		
		
		
		return root;
	}
	
}
